<template>
  <div class="error-page">
    <div class="error-page-center">
      <div class="error-page-img"></div>
      <div>找不到页面</div>
      <div class="error-button">
        <el-button class="error-return" @click="doReturn">返回上一页</el-button>
        <el-button class="error-return-index" @click="doIndex">返回首页</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {
    doReturn() {
      this.$router.go(-1)
    },
    doIndex() {
      this.$router.push({ path: '/index' })
    }
  },
  components: {}
}
</script>

<style lang="scss" scoped>
.error-page {
  width: 100%;
  height: 100%;
  font-size: 14px;
  color: #999;
  display: flex;
  justify-content: center;
  align-items: center;
  div {
    text-align: center;
  }

  .error-page-center {
    width: 300px;
    min-height: 300px;

    .error-page-img {
      width: 300px;
      height: 200px;
      border-radius: 50%;

      background: url('../assets/img/index/bianjie.png') no-repeat center;
    }
    .error-button {
      margin: 20px 0 0 0;
      .el-button {
        padding: 0;
        width: 130px;
        height: 30px;
        border-radius: 15px;
      }
      .error-return {
        background: #f09338;
        color: #fff;
        border: none;
      }
      .error-return-index {
        background: #fff;
        color: #f09338;
        border: 1px solid #f09338;
      }
    }
  }
}
</style>
